using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Enemy_IdleState : EnemyStateInGround
{
    public Enemy_IdleState(Enemy enemy, StateMachine stateMachine, string animName) : base(enemy, stateMachine, animName)
    {
        
    }

    public override void Enter()
    {
        base.Enter();
        stateTimer = enemy.idleWaitTime;
    }
    public override void Update()
    {
        base.Update();
        //站立等待时间完毕
        if (stateTimer < 0)
            stateMachine.ChangeState(enemy.moveState);
    }
    public override void FixedUpdate()
    {
        base.FixedUpdate();
    }
    public override void Exit()
    {
        base.Exit();
    }
}
